import './App.css';
import DemoCombinedPage2 from './pages/DemoCombinedPage2';
import DemoCombinedPage from './pages/DemoCombinedPage';

import LoginPage from './pages/LoginPage';
// import LoginLayout from './components/Login/LoginLayout';
// import LoginIndex from './components/Login/index';
// import RegisterForm from './components/Login/RegisterForm';
// import RegisterType from './components/Login/RegisterType';
// import OutLogin from './components/Login/OutLogin';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
function App() {
  return (
    <Router>
      <div className="app-container">
        <Routes>
          {/* 使用LoginLayout作为父路由，保持左侧不变 */}
          <Route path="/" element={<LoginPage />}>
            {/* 默认显示登录页面 */}
            {/* <Route index element={<LoginIndex />} /> */}
            {/* 注册类型 */}
            {/* <Route path="register/" element={<RegisterType />} /> */}
            {/* 注册表单页面 */}
            {/* <Route path="register/form" element={<RegisterForm />} /> */}
            {/* 校外登录 */}
            {/* <Route path="outlogin" element={<OutLogin />} /> */}
          </Route>
          {/* 为DemoCombinedPage添加专用路由 */}
          <Route path="/demo" element={<DemoCombinedPage2 />} />
        </Routes>
      </div>
    </Router>
  )
}

export default App;
